package com.example.traning.web.config;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

/**
 * @author lei yu
 * @since 2025/04/28
 */
@ConfigurationProperties(prefix = "my-config")
@Data
@Validated
public class MyKnife4jProperties {

    
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "描述不能为空")
    private String description;
    @NotBlank(message = "版本不能为空")
    private String version;

    @NotBlank(message = "联系人不能为空")
    private String name;
    @NotBlank(message = "联系人主页不能为空")
    private String url;
    @NotBlank(message = "联系邮件不能为空")
    private String email;

    @NotBlank(message = "服务条款名称不能为空")
    private String licenseName;
    @NotBlank(message = "服务条款地址不能为空")
    private String licenseUrl;
}
